import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import 'styles/index.less';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import reducer from './reducers/index';
import socket from './utils/socket';
import * as chatActions from './actions/chat';
const store = createStore(
    reducer,
    applyMiddleware(thunk)
)




ReactDOM.render(
    <Router>
        <Provider store={store}>
            <App />
        </Provider>       
    </Router>, 
    document.getElementById('root')
);
registerServiceWorker();
